﻿using Ledict.ConditionExtract.DAL;
using Ledict.ConditionExtract.Model;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Ledict.ConditionExtract.BLL
{
    public class SYS_ArgumentTextRelBLL
    {
        SYS_ArgumentTextRelDAL dal = new SYS_ArgumentTextRelDAL();

        /// <summary>
        /// 获取存储争议焦点内容与争议焦点要素表
        /// </summary>
        /// <returns></returns>
        public DataTable GetSysArgumentTextRelData(string causeId)
        {
            return dal.GetSysArgumentTextRelData(causeId);
        }

        /// <summary>
        /// 获取争议焦点数量
        /// </summary>
        /// <returns></returns>
        public int GetSysArgumentCount(string causeId)
        {
            return dal.GetSysArgumentCount(causeId);
        }

        /// <summary>
        /// 获取争议焦点内容根据caseid与内容
        /// </summary>
        /// <returns></returns>
        public DataTable GetSysArgumentTextRelData()
        {
            return dal.GetSysArgumentTextRelData();
        }

        /// <summary>
        /// 获取争议焦点内容根据caseid与内容
        /// </summary>
        /// <returns></returns>
        public DataTable GetSysArgumentTextRelDataByTj(string condition)
        {
            return dal.GetSysArgumentTextRelDataByTj(condition);
        }

            /// <summary>
            /// 获取争议焦点分组及数量
            /// </summary>
            /// <returns></returns>
            public DataTable GetSysArgumentTop(string ccID)
        {
            return dal.GetSysArgumentTop(ccID);
        }

        /// <summary>
        /// 修改争议焦点选中状态
        /// </summary>
        /// <returns></returns>
        public bool UpdateArgumentState(int state, string caseId, string atrContent)
        {
            return dal.UpdateArgumentState(state, caseId, atrContent);
        }

        /// <summary>
        /// 删除争议焦点内容与争议焦点要素表
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        public bool DelSYS_ArgumentTextRel(string caseId, string atrContent)
        {
            return dal.DelSYS_ArgumentTextRel(caseId, atrContent);
        }

        /// <summary>
        /// 插入存储争议焦点内容与争议焦点要素表
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        public bool AddSYS_ArgumentTextRel(SYS_ArgumentTextRel model)
        {
            return dal.AddSYS_ArgumentTextRel(model);
        }

        /// <summary>
        /// 获取争议焦点内容
        /// </summary>
        /// <returns></returns>
        public DataTable GetSysArgumentTextRelDataNew(SYS_ArgumentTextRel model)
        {
            return dal.GetSysArgumentTextRelDataNew(model);
        }

        /// <summary>
        /// 获取争议焦点内容
        /// </summary>
        /// <returns></returns>
        public DataTable GetSysArgumentTextData(string CaseCode)
        {
            return dal.GetSysArgumentTextData(CaseCode);
        }

        /// <summary>
        /// 获取重新分析数据
        /// </summary>
        /// <param name="dta"></param>
        /// <returns></returns>
        public DataSet dtReAnalyData(Data dta)
        {
            return dal.dtReAnalyData(dta);
        }

        /// <summary>
        /// 获取重新分析数据案例
        /// </summary>
        /// <param name="dta"></param>
        /// <returns></returns>
        public DataSet dtReAnalyDataAL(Data dta)
        {
            return dal.dtReAnalyDataAL(dta);
        }



        /// <summary>
        /// 插入存储争议焦点内容与争议焦点要素表
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        public bool AddSYS_ArgumentTextRelNew(SYS_ArgumentTextRel model)
        {
            return dal.AddSYS_ArgumentTextRelNew(model);
        }

        /// <summary>
        /// 先进行删除案例数据
        /// </summary>
        /// <param name="CaseId"></param>
        /// <param name="CauseId"></param>
        /// <param name="Atr_Content"></param>
        /// <returns></returns>
        public bool DeleteSys_ArgumentTextRel(string CaseId, string CauseId, string Atr_Content)
        {
            return dal.DeleteSys_ArgumentTextRel(CaseId, CauseId, Atr_Content);
        }

        /// <summary>
        /// 先进行删除实例数据
        /// </summary>
        /// <param name="CaseId"></param>
        /// <param name="CauseId"></param>
        /// <param name="Atr_Content"></param>
        /// <returns></returns>
        public bool DeleteSys_ArgumentTextRelSL(string CaseCode, string CauseId, string Atr_Content)
        {
            return dal.DeleteSys_ArgumentTextRelSL(CaseCode, CauseId, Atr_Content);
        }

        /// <summary>
        /// 删除数据根据atrID
        /// </summary>
        /// <param name="atrID"></param>
        /// <returns></returns>
        public bool DeleteArgumentTextRel(string atrID)
        {
            return dal.DeleteArgumentTextRel(atrID);
        }
    }
}
